import service from '~/api/service/axios.js'
export function login(id,password,type) {
    return service.post(`/login/user?type=${type}`, {
        id,
        password
    })
}
export const reuestTableData = () =>{
    return requests.get('/user/page/admin');
}
// 添加
export const addTableData = (params) =>{
    return requests.post('/user/admin',params);
}
// 修改
export const editTableData = (params) =>{
    return requests.post('/user/info/admin',params);
}
//删除
export const delTableData = (workid) =>{
    return requests.get(`/user/admin/${ids}`);
}